package com.cracker.sso.dao;

import com.cracker.sso.entity.UserEntity;
import com.cracker.sso.interpreter.UserInterpreter;
import com.cracker.sso.model.UserModel;
import com.cracker.sso.repository.UserRepository;
import com.tool.base.base.BaseDao;
import org.springframework.stereotype.Component;

@Component
public class UserDao extends BaseDao<UserEntity, UserModel, UserRepository, UserInterpreter> {
    public UserModel getByAccount(String account) {
        return mapper.entityToModel(repository.getByAccount(account));
    }
}
